package com.wanrue.tcc.recover;


import com.wanrue.tcc.common.ContextService;
import com.wanrue.tcc.context.Context;
import com.wanrue.tcc.enums.Result;
import lombok.Setter;

public abstract class AbstractCheckService {

    @Setter
    private ContextService contextService;

    public Context getContext(Object... args) {
        return contextService.get(args);
    }

    public abstract void saveStatus(Object... args);

    public abstract Result checkStatus(Context context);
}
